﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebSite.Ajax
{
    public partial class CheckCaptcode : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string captcode = Request.QueryString["captcode"] + "";
            string code = Session["code"] + "";
            if (code != captcode)
            {
                Response.Write("-1");
                return;
            }
            else
            {
                Response.Write("0");
                return;
            }
        }
    }
}